using System;
using System.Threading;
using System.Windows;
using NUnit.Framework;
using RFS.BizLogic;
using RFS.BizLogic.PaiShi.Ports;
using RFS.BizLogic.Sys;
using RFS.BizLogic.utils;
using RFS.Domain.PaiShi;
using RFS.Domain.PaiShi.Accounting;
using RFS.WPF;
using RFS.WPF.StartUp;
using RFS.WPF.utils;
using RFS.WPF.Views;
using ycx;

namespace IntergrationTest.PaiShi
{
    
    public class ItDuiZhang
    {

        private IAntiObject _anti;

        private App a;

        [SetUp]
        public void setup()
        {
            _anti = ViewStarter.Start(true);
             a   = new App();
              
        }
        [OneTimeTearDown]
        public void tt()
        {
            a.Shutdown();
        }



        [Test]         
        [Apartment(ApartmentState.STA)] 
        public void T10_StartDZView()
        {
            var vm = _anti.Get<VoucherSetWrapperVm>()  ;
            vm.Perio = new AccountPeriod(DateTime.Parse("2024-12-13"),1);
            vm.CmdLoadData.Execute();
            var v = new  VoucherSetWindow( vm)  ;
            v.ShowDialog  ();
        }

        
         
         
    }
}